<template>
	<view class="my-search" @click="to_search">
		<view class="search-container">
			<uni-icons type="search" size="17"></uni-icons>
			<text class="search-text">搜索</text>
		</view>
	</view>
</template>

<script>
	export default {
		name:"my-search",
		data() {
			return {
				
			};
		},
		methods: {
			to_search() {
				uni.navigateTo({
					url: '/subpkg/search/search'
				})
			}
		}
	}
</script>

<style lang="scss">
	.my-search {
		background-color: #84AF9B;
		height: 32px;
	}
	.search-container {
		background-color: white;
		width: 80%;
		height: 27px;
		display: flex;
		align-items: center;
		justify-content: center;
		margin: auto;
		border-radius: 18px;
	}
	.search-text {
		font-size: 14px;
		margin-left: 2px;
	}
</style>